<div class="col-md-2">
	<div class="list-group" id="left-nav">
		<a href="javascript:void(0);" data-tab="finish" class="list-group-item">当前线网软件版本</a>
		<a href="javascript:void(0);" data-tab="back" class="list-group-item">软件升级统计</a>
		<a href="javascript:void(0);" data-tab="downloadtime" class="list-group-item">软件下载花费时间</a>
	</div>
</div>

<div class="col-md-10">
    <div class="panel panel-default">
        <div class="panel-heading">
        	<h3 id="table-head"></h3>
        </div>
        <div class="panel-body">
        	<div id="finish-tab" class="panel-tab">
        		<h4>范围线路已完全下载的软件版本</h4>
	            <form class="form-inline" id="filter-finished-form" role="form" method="GET">
	                <div class="form-group">
	                    <label for="filter-finished-area">软件线路分类</label>
	                    <select class="form-control filter-option-finished" id="filter-finished-area" data-filter="area">
	                        <option value=""></option>
	                    	<?php
	                    		if (isset($sort['download_finished'])) {
		                            if (isset($sort['download_finished']['area'])) {
		                                foreach ($sort['download_finished']['area'] as $value) {
		                                    echo "<option value='$value'>$value</option>";
		                                }
		                            }
	                    		}
	                    	?>
	                    </select>
	                </div>
	                <div class="form-group">
	                    <label for="filter-finished-device">设备类型</label>
	                    <select class="form-control filter-option-finished" id="filter-finished-device" data-filter="device">
	                        <option value=""></option>
	                    	<?php
	                    		if (isset($sort['download_finished'])) {
		                            if (isset($sort['download_finished']['device'])) {
		                                foreach ($sort['download_finished']['device'] as $value) {
		                                    echo "<option value='$value'>$value</option>";
		                                }
		                            }
	                    		}
	                    	?>
	                    </select>
	                </div>
	                <div class="form-group">
	                    <label for="filter-finished-type">软件类型</label>
	                    <select class="form-control filter-option-finished" id="filter-finished-type" data-filter="type">
	                        <option value=""></option>
	                    	<?php
	                    		if (isset($sort['download_finished'])) {
		                            if (isset($sort['download_finished']['type'])) {
		                                foreach ($sort['download_finished']['type'] as $value) {
		                                    echo "<option value='$value'>$value</option>";
		                                }
		                            }
	                    		}
	                    	?>
	                    </select>
	                </div>
	                <a type="submit" class="btn btn-primary filter-submit" data-sort="finished" >筛选</a>
	            </form>
	            <p></p>
	            <div class="table-box">
					<table class="table table-bordered table-striped tablesorter" id="finished-table">
						<thead>
					    	<th data-attr="area">软件线路分类</th>
		                    <th data-attr="device">设备类型</th>
					    	<th data-attr="type">软件类型</th>
					    	<th data-attr="aftervision">升级后版本</th>
							<th data-attr="downloadtime2">软件完成下载时间</th>
		                    <th data-attr="supplier">软件供应商</th>
						</thead>
						<tbody></tbody>
					</table>
				</div>
        		<h4>范围线路未完全下载的软件版本</h4>
	            <form class="form-inline" id="filter-unfinished-form" role="form" method="GET">
	                <div class="form-group">
	                    <label for="filter-unfinished-area">软件线路分类</label>
	                    <select class="form-control filter-option-unfinished" id="filter-unfinished-area" data-filter="area">
	                        <option value=""></option>
	                    	<?php
	                    		if (isset($sort['download_unfinished'])) {
		                            if (isset($sort['download_unfinished']['area'])) {
		                                foreach ($sort['download_unfinished']['area'] as $value) {
		                                    echo "<option value='$value'>$value</option>";
		                                }
		                            }
	                    		}
	                    	?>
	                    </select>
	                </div>
	                <div class="form-group">
	                    <label for="filter-unfinished-device">设备类型</label>
	                    <select class="form-control filter-option-unfinished" id="filter-unfinished-device" data-filter="device">
	                        <option value=""></option>
	                    	<?php
	                    		if (isset($sort['download_unfinished'])) {
		                            if (isset($sort['download_unfinished']['device'])) {
		                                foreach ($sort['download_unfinished']['device'] as $value) {
		                                    echo "<option value='$value'>$value</option>";
		                                }
		                            }
	                    		}
	                    	?>
	                    </select>
	                </div>
	                <div class="form-group">
	                    <label for="filter-unfinished-type">软件类型</label>
	                    <select class="form-control filter-option-unfinished" id="filter-unfinished-type" data-filter="type">
	                        <option value=""></option>
	                    	<?php
	                    		if (isset($sort['download_unfinished'])) {
		                            if (isset($sort['download_unfinished']['type'])) {
		                                foreach ($sort['download_unfinished']['type'] as $value) {
		                                    echo "<option value='$value'>$value</option>";
		                                }
		                            }
	                    		}
	                    	?>
	                    </select>
	                </div>
	                <div class="form-group">
	                    <label for="filter-unfinished-line">线路</label>
	                    <select class="form-control filter-option-unfinished" id="filter-unfinished-line" data-filter="line">
	                        <option value=""></option>
	                    	<?php
	                    		if (isset($sort['download_unfinished'])) {
		                            if (isset($sort['download_unfinished']['line'])) {
		                                foreach ($sort['download_unfinished']['line'] as $value) {
		                                    echo "<option value='$value'>$value</option>";
		                                }
		                            }
	                    		}
	                    	?>
	                    </select>
	                </div>
	                <a type="submit" class="btn btn-primary filter-submit" data-sort="unfinished">筛选</a>
	            </form>
	            <p></p>
	            <div class="table-box">
					<table class="table table-bordered table-striped tablesorter" id="unfinished-table">
						<thead>
					    	<th data-attr="center">所属中心</th>
		                    <th data-attr="line">线路</th>
					    	<th data-attr="station">车站</th>
					    	<th data-attr="range">范围</th>
		                    <th data-attr="supplier">软件供应商</th>
		                    <th data-attr="area">软件线路分类</th>
		                    <th data-attr="device">设备类型</th>
		                    <th data-attr="type">软件类型</th>
		                    <th data-attr="aftervision">升级后版本</th>
							<th data-attr="downloadtime">软件下载时间</th>
						</thead>
						<tbody></tbody>
					</table>
				</div>
        	</div>
        	<div id="back-tab" class="panel-tab">
	            <form class="form-inline" role="form" method="GET">
	                <div class="form-group">
	                    <label>时间</label>
	                	<input class="form-control filter-option-back date-input" type="text" placeholder="选择日期" data-filter="fromdate">
			        </div>
	                <div class="form-group">
	                    <label>至</label>
	                    <input class="form-control filter-option-back date-input" type="text"  placeholder="选择日期" data-filter="todate">
	                </div>
	                <div class="form-group">
	                    <label for="filter-back-supplier">供应商</label>
	                    <select class="form-control filter-option-back" id="filter-back-supplier" data-filter="supplier">
	                        <option value=""></option>
	                    	<?php
	                    		if (isset($sort['back'])) {
		                            if (isset($sort['back']['supplier'])) {
		                                foreach ($sort['back']['supplier'] as $value) {
		                                    echo "<option value='$value'>$value</option>";
		                                }
		                            }
	                    		}
	                    	?>
	                    </select>
	                </div>
	                <div class="form-group">
	                    <label for="filter-back-device">设备类型</label>
	                    <select class="form-control filter-option-back" id="filter-back-device" data-filter="device">
	                        <option value=""></option>
	                    	<?php
	                    		if (isset($sort['back'])) {
		                            if (isset($sort['back']['device'])) {
		                                foreach ($sort['back']['device'] as $value) {
		                                    echo "<option value='$value'>$value</option>";
		                                }
		                            }
	                    		}
	                    	?>
	                    </select>
	                </div>
	                <div class="form-group">
	                    <label for="filter-back-type">软件类型</label>
	                    <select class="form-control filter-option-back" id="filter-back-type" data-filter="type">
	                        <option value=""></option>
	                    	<?php
	                    		if (isset($sort['back'])) {
		                            if (isset($sort['back']['type'])) {
		                                foreach ($sort['back']['type'] as $value) {
		                                    echo "<option value='$value'>$value</option>";
		                                }
		                            }
	                    		}
	                    	?>
	                    </select>
	                </div>
	                <div class="form-group">
	                    <label for="filter-back-finish">成功</label>
	                    <select class="form-control filter-option-back" id="filter-back-finish" data-filter="finish">
	                        <option value=""></option>
	                        <option value="1">是</option>
	                        <option value="0">否</option>
	                    </select>
	                </div>
	                <div class="form-group">
	                    <label for="filter-back-back">回退</label>
	                    <select class="form-control filter-option-back" id="filter-back-back" data-filter="back">
	                        <option value=""></option>
	                        <option value="1">是</option>
	                        <option value="0">否</option>
	                    </select>
	                </div>
	                <a type="submit" class="btn btn-primary filter-submit" data-sort="back">筛选</a>
	            </form>
	            <p></p>
	            <div class="table-box">
					<table class="table table-bordered table-striped tablesorter" id="back-table">
						<thead>
		                    <th data-attr="supplier">软件供应商</th>
		                    <th data-attr="device">设备类型</th>
		                    <th data-attr="type">软件类型</th>
		                    <th data-attr="">升级次数</th>
		                    <th data-attr="">成功次数</th>
		                    <th data-attr="">退回次数</th>
						</thead>
						<tbody></tbody>
					</table>
				</div>
	            <div class="table-box">
					<table class="table table-bordered table-striped tablesorter" id="back-detail-table">
						<thead>
		                    <th data-attr="supplier">供应商</th>
		                    <th data-attr="device">线路软件分类</th>
		                    <th data-attr="type">设备类型</th>
		                    <th data-attr="">软件类型</th>
		                    <th data-attr="">软件文件名称</th>
		                    <th data-attr="">升级版本前</th>
		                    <th data-attr="">升级版本后</th>
		                    <th data-attr="">开始时间</th>
		                    <th data-attr="">结束时间</th>
		                    <th data-attr="">耗时（天）</th>
		                    <th data-attr="">成功</th>
		                    <th data-attr="">退回</th>
		                    <th data-attr="">软件修改问题说明</th>
		                    <th data-attr="">回退责任方</th>
						</thead>
						<tbody></tbody>
					</table>
				</div>
        	</div>
        	<div id="downloadtime-tab" class="panel-tab">
	            <form class="form-inline" role="form" method="GET">
	                <div class="form-group">
	                    <label>时间</label>
	                	<input class="form-control filter-option-downloadtime  date-input" type="text" id="from-date" placeholder="选择日期" data-filter="fromdate">
			        </div>
	                <div class="form-group">
	                    <label>至</label>
	                    <input class="form-control filter-option-downloadtime date-input" type="text" id="to-date" placeholder="选择日期" data-filter="todate">
	                </div>
	                <div class="form-group">
	                    <label for="filter-downloadtime-center">中心</label>
	                    <select class="form-control filter-option-downloadtime" id="filter-downloadtime-center" data-filter="center">
	                        <option value=""></option>
	                    	<?php
	                    		if (isset($sort['downloadtime'])) {
		                            if (isset($sort['downloadtime']['center'])) {
		                                foreach ($sort['downloadtime']['center'] as $value) {
		                                    echo "<option value='$value'>$value</option>";
		                                }
		                            }
	                    		}
	                    	?>
	                    </select>
	                </div>
	                <div class="form-group">
	                    <label for="filter-downloadtime-device">设备类型</label>
	                    <select class="form-control filter-option-downloadtime" id="filter-downloadtime-device" data-filter="device">
	                        <option value=""></option>
	                    	<?php
	                    		if (isset($sort['downloadtime'])) {
		                            if (isset($sort['downloadtime']['device'])) {
		                                foreach ($sort['downloadtime']['device'] as $value) {
		                                    echo "<option value='$value'>$value</option>";
		                                }
		                            }
	                    		}
	                    	?>
	                    </select>
	                </div>
	                <div class="form-group">
	                    <label for="filter-downloadtime-type">软件类型</label>
	                    <select class="form-control filter-option-downloadtime" id="filter-downloadtime-type" data-filter="type">
	                        <option value=""></option>
	                    	<?php
	                    		if (isset($sort['downloadtime'])) {
		                            if (isset($sort['downloadtime']['type'])) {
		                                foreach ($sort['downloadtime']['type'] as $value) {
		                                    echo "<option value='$value'>$value</option>";
		                                }
		                            }
	                    		}
	                    	?>
	                    </select>
	                </div>
	                <a type="submit" class="btn btn-primary filter-submit" data-sort="downloadtime" >筛选</a>
	            </form>
	            <p></p>
	            <div class="table-box">
					<table class="table table-bordered table-striped tablesorter" id="downloadtime-table">
						<thead>
		                    <th data-attr="center">所属中心</th>
					    	<th data-attr="area">软件线路分类</th>
		                    <th data-attr="device">设备类型</th>
					    	<th data-attr="type">软件类型</th>
					    	<th data-attr="aftervision">升级后版本</th>
		                    <th data-attr="downloatime">下载花费时间</th>
						</thead>
						<tbody></tbody>
					</table>
				</div>
        	</div>
        </div>
    </div>
</div>
<div class="modal fade" id="dialog-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog modal-lg">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				<h3 class="modal-title" id="dialog-modal-title"></h3>
			</div>
			<div class="modal-body" id="dialog-modal-body">
				<table class="table table-bordered table-striped tablesorter" id="back-detail-table">
					<thead>
	                    <th data-attr="supplier">供应商</th>
				    	<th data-attr="aftervision">版本</th>
	                    <th data-attr="downloadtime">下载时间</th>
	                    <th data-attr="remark">回退原因</th>
					</thead>
					<tbody></tbody>
				</table>
			</div>
			<div class="clearfix"></div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
			</div>
		</div>
	</div>
</div>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       